export enum AlertType {
  SUCCESS = 'success',
  INFO = 'info',
  WARNING = 'warning',
  ERROR = 'error',
}

export enum IconShape {
  SUCCESS = 'check-circle',
  INFO = 'info-circle',
  WARNING = 'exclamation-circle',
  ERROR = 'close-circle',
}

export enum IconColor {
  SUCCESS = '#52c41a',
  INFO = '#1690f3',
  WARNING = '#faad14',
  ERROR = '#f31616',
}

export enum IconType {
  IMG = 'img',
  ICON = 'icon',
}

export enum AuditType {
  AUDIT_0 = 0, //未实名
  AUDIT_1 = 1, //审核中
  AUDIT_2 = 2, //审核通过
  AUDIT_3 = 3, //审核驳回
  AUDIT_4 = 4, //变更审核中
  AUDIT_5 = 5, //变更审核通过
  AUDIT_6 = 6, //变更审核驳回
}

export const ALEART_TYPE_MAP = {
  [AuditType.AUDIT_0]: {
    auditType: AlertType.WARNING,
    iconType: IconType.ICON,
    icon: IconShape.WARNING,
    iconColor: IconColor.WARNING,
    title: '未实名',
    isShowAlertIcon: false,
  },
  [AuditType.AUDIT_1]: {
    auditType: AlertType.INFO,
    iconType: IconType.IMG,
    title: '审核中',
    src: '../../../assets/images/xiaoxin.png',
    isShowAlertIcon: false,
  },
  [AuditType.AUDIT_2]: {
    auditType: AlertType.SUCCESS,
    iconType: IconType.ICON,
    title: '审核通过',
    icon: IconShape.SUCCESS,
    iconColor: IconColor.SUCCESS,
    isShowAlertIcon: false,
  },
  [AuditType.AUDIT_3]: {
    auditType: AlertType.ERROR,
    iconType: IconType.ICON,
    title: '审核驳回',
    icon: IconShape.ERROR,
    iconColor: IconColor.ERROR,
    isShowAlertIcon: false,
  },
  [AuditType.AUDIT_4]: {
    auditType: AlertType.INFO,
    iconType: IconType.IMG,
    title: '变更审核中',
    src: '../../../assets/images/xiaoxin.png',
    isShowAlertIcon: false,
  },
  [AuditType.AUDIT_5]: {
    auditType: AlertType.SUCCESS,
    iconType: IconType.ICON,
    title: '变更审核通过',
    icon: IconShape.SUCCESS,
    iconColor: IconColor.SUCCESS,
    isShowAlertIcon: false,
  },
  [AuditType.AUDIT_6]: {
    auditType: AlertType.ERROR,
    iconType: IconType.ICON,
    title: '变更审核驳回',
    icon: IconShape.ERROR,
    iconColor: IconColor.ERROR,
    isShowAlertIcon: false,
  },
};

export interface AlertInfo {
  auditType: AlertType;
  iconType?: IconType;
  title: string;
  icon?: any;
  src?: string;
  warmTips?: string;
  iconColor?: any;
  isShowAlertIcon?: boolean;
}
